package generator.service;

import com.atkt.ktkt.model.vod.Chapter;
import com.atkt.ktkt.vo.vod.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 罗雅文
* @description 针对表【chapter(课程)】的数据库操作Service
* @createDate 2022-09-18 17:24:58
*/
public interface ChapterService extends IService<Chapter> {

    // 1 大纲列表（章节和小节列表）
    List<ChapterVo> getTreeList(Long courseId);

    //根据课程id删除章节
    void removeChapterByCourseId(Long id);

    List<ChapterVo> getNestedTreeList(Long id);
}
